package net.freestu.sola.web.global;

public class TimeLimitThread extends Thread {
	
	private long maxtime;//按毫秒来1000为1秒
	
	//一个小时为
	//1000*60*60一小时=3600000
	
	public TimeLimitThread(long maxtime){
		this.maxtime=maxtime;
	}
	public void run(){
		try {
			Thread.sleep(maxtime);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		System.exit(1);
	}
}
